//
//  Common.swift
//  新浪微博
//
//  Created by mac on 16/4/16.
//  Copyright © 2016年 mac. All rights reserved.
//

import UIKit


let SCREENW = UIScreen.mainScreen().bounds.width
let SCREENH = UIScreen.mainScreen().bounds.height

let ThemeColor = UIColor.orangeColor()

//RGB
func RGB(red red: CGFloat, green: CGFloat, blue: CGFloat) -> UIColor{
    return UIColor(red: red / 255, green: green / 255, blue: blue / 255, alpha: 1)
}

//随机颜色
func RandomColor() -> UIColor{
    let r = random() % 256
    let g = random() % 256
    let b = random() % 256
    
    return RGB(red: CGFloat(r), green: CGFloat(g), blue: CGFloat(b))
}
//微博参数数据
let APPKEY = "573366319"
let APPSECRET = "607d66d59667cb7726c9947594e99ca6"
let REDIRECT_URI =  "http://www.baidu.com"

//账号
let LPFweiboName = "18334787244"
let LPFweiboPasswd = "fei19940910"

//// 微博登陆需要的账号
//let LPFweiboName = "rangyuan05788697@163.com"
//let LPFweiboPasswd = "aaa333"
//
//// 新浪微博需要的参数数据
//let APPKEY = "2502178694"
//let APPSECRET = "cab21a615b11a37b9000c9082ddad03d"
//let REDIRECT_URI = "http://www.baidu.com/"

// 切换根视图使用通知名字标识
let SwitchDefaultVcNSNotification = "SwitchDefaultVcNSNotification"